﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

namespace WellDone
{
    public sealed partial class ViewOrderControl : UserControl
    {
        public ViewOrderControl()
        {
            this.InitializeComponent();
        }

        public void addItemToList(string orderItem)
        {
            // Add the item to the list
            ListViewItem lvi=new ListViewItem();
            lvi.Content = orderItem;
            lvi.FontSize = 28;
            lvOrderItems.Items.Add(lvi);
        }

        public void setOrderNumber(int iOrderNumber)
        {
            tblkOrderInfo.Text = "Order # " + iOrderNumber.ToString();
        }
    }
}
